<%@ page import="quanlythuvien.PhieuThanhLy" %>



<div class="fieldcontain ${hasErrors(bean: phieuThanhLyInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="phieuThanhLy.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${phieuThanhLyInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThanhLyInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="phieuThanhLy.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${phieuThanhLyInstance.tinhTrang}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThanhLyInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="phieuThanhLy.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${phieuThanhLyInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThanhLyInstance, field: 'ngayThanhLy', 'error')} required">
	<label for="ngayThanhLy">
		<g:message code="phieuThanhLy.ngayThanhLy.label" default="Ngay Thanh Ly" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayThanhLy" precision="day"  value="${phieuThanhLyInstance?.ngayThanhLy}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThanhLyInstance, field: 'lyDo', 'error')} ">
	<label for="lyDo">
		<g:message code="phieuThanhLy.lyDo.label" default="Ly Do" />
		
	</label>
	<g:textArea name="lyDo" cols="40" rows="5" maxlength="255" value="${phieuThanhLyInstance?.lyDo}"/>
</div>

